package com.chengwei.ch.busdemo.activity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.chengwei.ch.busdemo.R;
import com.chengwei.ch.busdemo.base.BaseActivity;
import com.chengwei.ch.busdemo.view.TitleView;

@SuppressLint("Registered")
public class ActivationActivity extends BaseActivity {

    //创建播放视频的控件对象
    private TitleView titleBack;
    private Button btnActivation;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_activation);
        initView();
        initClickListener();
    }


    private void initView() {
        titleBack = findViewById(R.id.titleBackActivation);
        btnActivation = findViewById(R.id.btnActivation);
    }


    private void initClickListener() {
        titleBack.addTitleLeftOnClickListener(this);
        btnActivation.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.IBtnTitleViewLeftBack: {
                finish();
                break;
            }
            case R.id.btnActivation: {
                finish();
                break;
            }
            default:
                break;
        }
    }
}
